<?php echo $this->element('menu'); ?>
<div class="directors view">
<h2><?php  __('Director');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $director['Director']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $director['Director']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Director', true), array('action' => 'edit', $director['Director']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Director', true), array('action' => 'delete', $director['Director']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $director['Director']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Directors', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Director', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Codexecs', true), array('controller' => 'codexecs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Codexec', true), array('controller' => 'codexecs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Codtrans', true), array('controller' => 'codtrans', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Codtran', true), array('controller' => 'codtrans', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Codexecs');?></h3>
	<?php if (!empty($director['Codexec'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('ComID'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Director Id'); ?></th>
		<th><?php __('DIRref'); ?></th>
		<th><?php __('Dir Title Id'); ?></th>
		<th><?php __('Dir Title Id2'); ?></th>
		<th><?php __('App'); ?></th>
		<th><?php __('Resig'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($director['Codexec'] as $codexec):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $codexec['id'];?></td>
			<td><?php echo $codexec['ComID'];?></td>
			<td><?php echo $codexec['Name'];?></td>
			<td><?php echo $codexec['director_id'];?></td>
			<td><?php echo $codexec['DIRref'];?></td>
			<td><?php echo $codexec['dir_title_id'];?></td>
			<td><?php echo $codexec['dir_title_id2'];?></td>
			<td><?php echo $codexec['App'];?></td>
			<td><?php echo $codexec['Resig'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'codexecs', 'action' => 'view', $codexec['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'codexecs', 'action' => 'edit', $codexec['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'codexecs', 'action' => 'delete', $codexec['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $codexec['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Codexec', true), array('controller' => 'codexecs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Codtrans');?></h3>
	<?php if (!empty($director['Codtran'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('ComID'); ?></th>
		<th><?php __('Date'); ?></th>
		<th><?php __('Company'); ?></th>
		<th><?php __('Code'); ?></th>
		<th><?php __('Director'); ?></th>
		<th><?php __('Director Id'); ?></th>
		<th><?php __('Transaction'); ?></th>
		<th><?php __('Number'); ?></th>
		<th><?php __('Price'); ?></th>
		<th><?php __('Value'); ?></th>
		<th><?php __('Holding'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($director['Codtran'] as $codtran):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $codtran['id'];?></td>
			<td><?php echo $codtran['ComID'];?></td>
			<td><?php echo $codtran['Date'];?></td>
			<td><?php echo $codtran['Company'];?></td>
			<td><?php echo $codtran['Code'];?></td>
			<td><?php echo $codtran['Director'];?></td>
			<td><?php echo $codtran['director_id'];?></td>
			<td><?php echo $codtran['Transaction'];?></td>
			<td><?php echo $codtran['Number'];?></td>
			<td><?php echo $codtran['Price'];?></td>
			<td><?php echo $codtran['Value'];?></td>
			<td><?php echo $codtran['Holding'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'codtrans', 'action' => 'view', $codtran['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'codtrans', 'action' => 'edit', $codtran['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'codtrans', 'action' => 'delete', $codtran['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $codtran['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>
